import request from '@/utils/request'


export default {

  // 生成统计数据
  createStaData(day) {
    return request({
      url: '/statistics/daily/createStatisticsByDate/'+day,
      method: 'post'
    })
  },
  // 获取统计的数据
  showChart(staday) {
    return request({
        url: `/statistics/daily/showChart/${staday.begin}/${staday.end}/${staday.type}`,
        method: 'get'
    })
}
}